package com.yvan.eventsourcing;

import com.yvan.platform.StringUtils;

/**
 * Created by Administrator on 2017/8/16.
 */

public class RabbitMqProperties {

    private String host;
    private int port;
    private String username;
    private String password;
    private String vhost;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getVhost() {
        return StringUtils.isNullOrEmpty(vhost) ? "/" : vhost;
    }

    public void setVhost(String vhost) {
        this.vhost = vhost;
    }
}
